import request from '@/utils/request'

// 查询订单车辆图片列表
export function listImg(query) {
  return request({
    url: '/order/img/list',
    method: 'get',
    params: query
  })
}

// 查询订单车辆图片详细
export function getImg(id) {
  return request({
    url: '/order/img/' + id,
    method: 'get'
  })
}

// 新增订单车辆图片
export function addImg(data) {
  return request({
    url: '/order/img',
    method: 'post',
    data: data
  })
}

// 新增订单车辆图片
export function saveImg(data) {
  return request({
    url: '/order/img/save',
    method: 'post',
    data: data
  })
}

// 修改订单车辆图片
export function updateImg(data) {
  return request({
    url: '/order/img',
    method: 'put',
    data: data
  })
}

// 删除订单车辆图片
export function delImg(id) {
  return request({
    url: '/order/img/' + id,
    method: 'delete'
  })
}

// 导出订单车辆图片
export function orderImg(id) {
  return request({
    url: '/order/img/orderImg/'+id,
    method: 'get'
  })
}

// 导出订单车辆图片
export function orderImgByOrderId(id) {
  return request({
    url: '/order/img/orderImgByOrderId/'+id,
    method: 'get'
  })
}
